package designPattern.creationpattern.prototype.deepCopy02;

/**
 * @author wei.zhao
 * @description:
 * @date 2021年12月09日 16:13
 */
public class Client {

    public static void main(String[] args) throws Exception {
        Resume resume = new Resume("张三", "java开发", "面议", new Witness("见证人"));
        System.out.println(resume.getWitness().hashCode() + resume.getWitness().toString());
        for (int i = 1; i <= 10; i++) {
            Resume resumeTemp = resume.deepClone();
            //引用对象witness的hash值不一样
            System.out.println(resumeTemp.getWitness().hashCode() + resumeTemp.getWitness().toString());
        }
    }

}
